package com.lby.graduation.controller;


import com.lby.graduation.entity.Role;
import com.lby.graduation.service.RoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 李兵耀
 * @since 2020-12-02
 */
@RestController
@RequestMapping("/role")
public class RoleController {
    @Resource
    private RoleService roleService;
    @GetMapping("/dd")
    public List<Role> dd(){
        return roleService.list();
    }

}
